/*!	 widgets/widget_link.h
**	 Template Header
**
**	Copyright (c) 2014 Jérôme Blanchi
**
**	This package is free software; you can redistribute it and/or
**	modify it under the terms of the GNU General Public License as
**	published by the Free Software Foundation; either version 2 of
**	the License, or (at your option) any later version.
**
**	This package is distributed in the hope that it will be useful,
**	but WITHOUT ANY WARRANTY; without even the implied warranty of
**	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
**	General Public License for more details.
**
*/

#ifndef __SYNFIG_STUDIO_WIDGET_LINK_H
#define __SYNFIG_STUDIO_WIDGET_LINK_H

#include <gtkmm/togglebutton.h>
#include "synfig/string.h"

namespace studio
{

class Widget_Link: public Gtk::ToggleButton
{
    synfig::String tooltip_inactive_;
    synfig::String tooltip_active_;

    Gtk::Image *icon_off_;
    Gtk::Image *icon_on_;

protected:
    void on_toggled();

public:
    Widget_Link(const std::string &tlt_inactive, const std::string &tlt_active);
    ~Widget_Link();
}; // END of class Widget_Link

} // END of namespace studio

#endif /* WIDGET_LINK_H_ */